﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Delay
{
    public class QueryXml
    {
     
        public static  string phonename=Microsoft.Phone.Info.DeviceStatus.DeviceName;
        public static  string phonevs = "";
        public static  string phonevsno = "";
        public static string keyvalue = "3EAC7283FD66491682B5153FCB89649F";
        public static string imei = queryDriverID();
        //public static string imei = Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceUniqueId") as string;
        //345ABCAE 国内商店
        //AB45CDF7 应用商店
        //ECB649E2 乐讯内部
        public static string channelkey = "E3A94DFE";
        public static  string forumid_daogou     = "1997";
        public static string forumid_hangqing = "2046";
        public static string forumid_ceping = "2187";
        public static string forumid_xinpin = "2207";
        public static string forumid_xinwen = "2026";
        public static string appid = "8984";
        //
        public static string PhoneInfoUrl = "http://csjgs1.lexun.com/cphone/news/list.aspx?";
        public static string PhoneInfoMoreUrl = "http://csjgs1.lexun.com/cphone/news/newstype.aspx?";
        public static string PhoneContentUrl = "http://csjgs1.lexun.com/cphone/news/content.aspx?";
        public static string PhoneReplyUrl = "http://csjgs1.lexun.com/cphone/news/listrly.aspx?";
        public static string PhoneCommentUrl = "http://csjgs1.lexun.com/cphone/news/addrly.aspx?";
        public static string PhoneShrewdEyeUrl = "http://csjgs1.lexun.com/cphone/news/newseye.aspx?";
        public static string PhoneEyeContentUrl = "http://csjgs1.lexun.com/cphone/news/content.aspx?";
        public static string PhoneEyeReplyUrl = "http://csjgs1.lexun.com/cphone/news/listrly.aspx?";
        public static string PhoneEyeCommentUrl = "http://csjgs1.lexun.com/cphone/news/addrly.aspx?";
        public static string PhoneSearchMoreUrl = "http://csjgs1.lexun.com/cphone/phone/searchmore.aspx?";
        public static string PhoneSearchMainUrl = "http://csjgs1.lexun.com/cphone/phone/phoneindex.aspx?";
        public static string PhonePkPhoneUrl = "http://csjgs1.lexun.com/cphone/phone/pkphone.aspx?";
        public static string PhoneTypeParameterUrl = "http://csjgs1.lexun.com/cphone/phone/info.aspx?";
        public static string PhoneTypePriceUrl = "http://csjgs1.lexun.com/cphone/phone/phoneprice.aspx?";
        public static string PhoneTypePictureUrl = "http://csjgs1.lexun.com/cphone/phone/phoneimgs.aspx?";
        //
        public static string PhoneTypeDetailCommentUrl = "http://csjgs1.lexun.com/cphone/phone/evaluatelist.aspx?";
        public static string PhoneTypeAddCommentUrl = "http://csjgs1.lexun.com/cphone/phone/addevaluate.aspx?";
        //
        //
        public static string PhoneTypeScoreDetailUrl = "http://csjgs1.lexun.com/cphone/phone/scoredetail.aspx?";
        //
        public static string PhoneTypeBibleUrl = "http://csjgs1.lexun.com/cphone/phone/article.aspx?";
        //
        public static string PhonePhonePkVoteUrl = "http://csjgs1.lexun.com/cphone/phone/phonevote.aspx?";
        //
        public static string PhonePhoneAddPkVoteUrl = "http://csjgs1.lexun.com/cphone/phone/addvote.aspx?";

        public static string PhoneTypeAreaUrl = "http://csjgs1.lexun.com/cphone/phone/pp.aspx?";
        //
        public static string PhoneHotPhoneUrl = "http://csjgs1.lexun.com/cphone/phone/hotphone.aspx?";
        //
        public static string PhoneTypePhoneUrl = "http://csjgs1.lexun.com/cphone/phone/phone.aspx?";
        //
        public static string PhoneMessageBoardUrl = "http://112.65.245.231/cpic/useradvise.aspx?";
        //
        public static string PhoneRegisterAccountUrl = "http://csjgs1.lexun.com/clogin/login.aspx?";
        //
        public static string PhoneAdvertListUrl = "http://112.65.245.231/cpic/adlist.aspx?";
        //
        public static string PhoneAdvertDetailsUrl = "http://112.65.245.231/cpic/content.aspx?";
        //
        public static string PhoneInitUrl = "http://csjgs1.lexun.com/cphone/init.aspx?";

        public static string PhoneTypeSerchUrl = "http://csjgs1.lexun.com/cphone/phone/phone.aspx?";

        public static string PhonedProfectSerchUrl = "http://csjgs1.lexun.com/cphone/phone/search.aspx?";
        private static string queryDriverID()
        {
            object DeviceUniqueID;
            byte[] DeviceIDbyte=null;
            if (Microsoft.Phone.Info.DeviceExtendedProperties.TryGetValue("DeviceUniqueId", out DeviceUniqueID))
            DeviceIDbyte = (byte[])DeviceUniqueID;
            string DeviceID="";
            DeviceID = BitConverter.ToString(DeviceIDbyte, 0, DeviceIDbyte.Length);
            DeviceID = MD5.GetMd5String(DeviceID);
            return DeviceID;
        }
      
    }
}
